<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE html>
<html>
  <head>
    <title>教材吧-新闻</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<%@ include file="/base/jsp/includeweb.jsp"%>
    <link type="text/css" rel="stylesheet" href="${path}/base/css/user.css"/>
  </head>
  <body>
  <%@ include file="/base/jsp/header.jsp"%>
  <%@ include file="/base/jsp/search-header.jsp"%>
  <div id="content-wrapper" class="content-wrapper border-top-org clear">
    <iframe name="news" id="news" onload="dyniframesize('news')" style="display:none;width:100%;height:2500px;min-height:500px;margin:10px 0;" frameborder="0" scrolling="yes"></iframe>
  </div>
    
  </div>
  <%@ include file="/base/jsp/footer.jsp"%>
  </body>
  <script type="text/javascript">
 var url = getParameter("url");
 var u = "http://soccer.hupu.com";
  $(function(){
     /*$("#newss").load("http://127.0.0.1:8080/bookshop/webindex.do","",function(){
          //alert($(this).html());
    });
    */
    $("#news").attr("src",url);
  })
  function test(){
     var mainheight = $("iframe").contents().find("body").html();
     //alert(mainheight);
  }
  
  function dyniframesize(down) { 
     var pTar = null; 
     if (document.getElementById){ 
       pTar = document.getElementById(down); 
     }else{ 
        eval('pTar = ' + down + ';'); 
     } 
     if (pTar && !window.opera){ 
     //begin resizing iframe 
        pTar.style.display="block" 
        if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){ 
           //ns6 syntax 
           //alert(pTar.contentDocument.body.offsetHeight);
           pTar.height = pTar.contentDocument.body.offsetHeight +20; 
           //pTar.width = pTar.contentDocument.body.scrollWidth+20; 
        }else if(pTar.Document && pTar.Document.body.scrollHeight){ 
            //ie5+ syntax 
            pTar.height = pTar.Document.body.scrollHeight; 
            pTar.width = pTar.Document.body.scrollWidth; 
        } 
     }
   }
  </script>
</html>